import { Injectable } from '@nestjs/common';

@Injectable()
export class ResponseService {
  createSuccessResponse(data: any): any {
    return {
      code: "200",
      data: data,
      msg: "成功"
    };
  }

  createErrorResponse(code: string, message: string): any {
    return {
      code: code,
      msg: message
    };
  }
}
